using System;
using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

[SugarTable("EarlyWarning", "预警信息")]
[SysTable]
public class EarlyWarning : EntityTenant
{
	/// <summary>
	/// 水表0电表 1水表
	/// </summary>
	[SugarColumn(DefaultValue = "0")]
	public int Type { get; set; }

	/// <summary>
	/// 预警消息
	/// </summary>
	public string WarningMsg { get; set; }

	/// <summary>
	/// 预警类型0 是采集器上报（拉合闸上报） 1是离线 2是用电
	/// </summary>
	public int WarningType { get; set; }

	/// <summary>
	/// 预警对象0是电表  1采集器
	/// </summary>
	public int WarningTargetType { get; set; }

	/// <summary>
	/// 预警对象id
	/// </summary>
	public long? WarningId { get; set; }

	/// <summary>
	/// 预警对象
	/// </summary>
	public string? WarningTarget { get; set; }

	/// <summary>
	/// 处理状态 0是未处理 1是进行中 2是已处理
	/// </summary>
	public int Status { get; set; }

	/// <summary>
	/// 处理结果z
	/// </summary>
	public string? ProcessingResults { get; set; }

	/// <summary>
	/// 操作人
	/// </summary>
	public long? OperateUserId { get; set; }

	/// <summary>
	/// 操作人名称
	/// </summary>
	public string? OperateUserName { get; set; }

	/// <summary>
	/// 开始处理时间
	/// </summary>
	public DateTime? StartTime { get; set; }

	/// <summary>
	/// 处理完成时间
	/// </summary>
	public DateTime? EndTime { get; set; }
}
